from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_session import Session
from flask_caching import Cache
from flask_mail import Mail

models = SQLAlchemy()
migrate = Migrate()
cache = Cache()
mail = Mail()


def init_plugins(app):
    models.init_app(app)
    migrate.init_app(app, models)
    Session(app)
    cache.init_app(app)
    mail.init_app(app)
